<?php echo form_open_multipart('staffprofile/editStaffDocument/'.$staffId.'/'.$staffDocId,array('class'=>'form-horizontal','id'=>'frm'));?>
<fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <div class="control-group">
        <label class="control-label">Document Type</label>
        <div class="controls">
          <?php echo form_dropdown('DocumentTypeID',$documenttypes, $document['DocumentType']);?>
        </div>
  </div>
  <div class="control-group">
	    <label class="control-label">Document Source *</label>
	    <div class="controls">
	      <input type="file" name="DocumentPath" />
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Remark *</label>
	    <div class="controls">
	       <textarea name="Remark" rows="3"><?php echo $document['Remark'];?></textarea>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Date Received *</label>
	    <div class="controls">
	      <input type="text" name="DateReceived" placeholder="Date Received" value="<?php echo $document['DateReceived'];?>" class="validate[required] datepicker" />
	    </div>
  	</div>
  <?php echo $form; ?>
 </fieldset> 

<?php echo form_close();?>